diff options
| author | Adam Soltys <[email protected]> | 2023-11-10 21:33:49 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-11-11 00:04:22 -0800 |
| commit | ae87f1d43c6d2cf34bd2ea6fd7b4d28af6d2aa91 (patch) | |
| tree | 694efda287338a3b81c5d7d41328c9f2e30e5218 /src/routes/(app)/funds/[id]/sweep/+page.server.js | |
| parent | efdbc67c17fab67bf3cdce448a30aa82f62c5212 (diff) | |
| download | coinos-ui-ae87f1d43c6d2cf34bd2ea6fd7b4d28af6d2aa91.tar.gz coinos-ui-ae87f1d43c6d2cf34bd2ea6fd7b4d28af6d2aa91.zip | |
nav update
Diffstat (limited to 'src/routes/(app)/funds/[id]/sweep/+page.server.js')
| -rw-r--r-- | src/routes/(app)/funds/[id]/sweep/+page.server.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/routes/(app)/funds/[id]/sweep/+page.server.js b/src/routes/(app)/funds/[id]/sweep/+page.server.js deleted file mode 100644 index 9fd244a3..00000000 --- a/src/routes/(app)/funds/[id]/sweep/+page.server.js +++ /dev/null @@ -1,14 +0,0 @@ -import { get, auth, post } from '$lib/utils'; -import { redirect } from '@sveltejs/kit'; - -export async function load({ cookies, params, parent }) { - let { user } = await parent(); - let { id } = params; - let { amount } = await get(`/fund/${id}`); - - - if (!amount) throw redirect(307, `/fund/${id}`); - if (!user) throw redirect(307, `/register?redirect=/fund/${id}/sweep`); - await post('/take', { amount, id }, auth(cookies)); - return { amount, id }; -} |
